<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2018/5/5
  Time: 20:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%

session.setAttribute("a",35);
pageContext.setAttribute("b",15);
request.setAttribute("c",25);
application.setAttribute("d",45);
pageContext.setAttribute("b",102);

String username="zhang";
out.write(String.valueOf(pageContext.getAttribute("b")));


%>


<h1>a=${a}</h1>

<p>${pageScope.a}</p>
<p>${requestScope.b}</p>
<p>${sessionScope.c}</p>
<p>${applicationScope.d}</p>






</body>
</html>
